package com.yf.dxapp.module.app.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 分类信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CategoryRespVO {

    @Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32448")
    @ExcelProperty("类目ID")
    private Long id;

    @Schema(description = "类目值", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("类目值")
    private Integer type;

    @Schema(description = "类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("类目名称")
    private String name;

    @Schema(description = "类目层级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("类目层级")
    private Integer level;

    @Schema(description = "根id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26198")
    @ExcelProperty("根id")
    private Long rootId;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "父级type", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("父级type")
    private Integer parentType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}